$(document).ready(function(){

    let username =localStorage.getItem("username")
    let pic =localStorage.getItem("pic")

    var uname= document.getElementById("name");
    let img =uname.querySelector("img");
    let span =uname.querySelector("span")

    // 修改文本
    span.innerText  = username;

    // 修改图片
    img.src = pic;
    $(".dropdown:eq(2) li a:eq(0)").text("test")

    var list = document.querySelectorAll(".dropdown>li>a");
    console.log(list[1].innerText);

    console.log(getInnerText(list[0]));
})